package io;

import java.io.*;

/**
 * 使用字符流读取字符
 */
public class ISRDemo {
    public static void main(String[] args) throws IOException {
        FileInputStream fis=new FileInputStream("ows.txt");
        InputStreamReader isr=new InputStreamReader(fis,"UTF-8");

        int d=isr.read();
        while ((d=isr.read())!=-1) {
            System.out.println((char) d);
        }
        isr.close();
    }
}
